{"version":3,"file":"font_field.map.js","names":["BX","namespace","Runtime","loadExtension","isFunction","Landing","Utils","isPlainObject","bind","proxy","escapeHtml","addClass","clone","REG_CLASS_FONT","REG_NAME_FONT","REG_SYNTAX","REG_SPACE","HEADER_TAGS","UI","Field","Font","data","BaseField","apply","this","arguments","layout","value","headlessMode","frame","items","defaultFontFamily","defaultFontLink","Component","Link","text","Loc","getMessage","getLayout","keys","Object","map","key","name","onChangeHandler","onChange","onValueChangeHandler","onValueChange","content","family","input","innerHTML","styleNode","currentTarget","element","document","querySelectorAll","selector","style","replace","split","createLinkContainer","setConditionLink","search","RegExp","fontFamily","window","getComputedStyle","body","getPropertyValue","onInputClick","subscribe","onDefaultFontLinkClick","makeFontClassName","toLowerCase","prototype","constructor","__proto__","event","preventDefault","stopPropagation","Panel","GoogleFonts","getInstance","show","then","font","response","forEach","fontItem","push","setValue","foundedClasses","classList","match","foundedClass","remove","linkContainer","createElement","add","append","includes","tagName","emptyHeader","appendChild","defaultFont","currentFont","hasChildNodes","removeChild","firstChild","preventEvent","className","weightList","weightParams","join","familyParams","href","client","makeUrl","public","uri","emit","FontManager","Tool","addFont","category","postfix","property","removeUnusedFonts","headString","getUsedLoadedFonts","item","setAttribute","removeAttribute","outerHTML","CSSDeclaration","Backend","action","getValue","onFrameLoad","classes","Array","from","matchAll","length","part","charAt","toUpperCase","slice"],"sources":["font_field.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBACbD,GAAGE,QAAQC,cAAc,6BAEzB,IAAIC,EAAaJ,GAAGK,QAAQC,MAAMF,WAClC,IAAIG,EAAgBP,GAAGK,QAAQC,MAAMC,cACrC,IAAIC,EAAOR,GAAGK,QAAQC,MAAME,KAC5B,IAAIC,EAAQT,GAAGK,QAAQC,MAAMG,MAC7B,IAAIC,EAAaV,GAAGK,QAAQC,MAAMI,WAClC,IAAIC,EAAWX,GAAGK,QAAQC,MAAMK,SAChC,IAAIC,EAAQZ,GAAGK,QAAQC,MAAMM,MAE7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